﻿@model List<S4Store.Domain.NetMarketingKpi.NetMarketingMedia>
@{
    ViewBag.Title = "Query";
    Layout = null;
}
<div class="pageContent" ratio="*">
<div class="grid">
		<table class="table" width="1000" layoutH="138" cellpadding="0" cellspacing="0">
		<thead>
			<tr>
				<th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
				<th width="150">名称</th>
			    <th width="50">媒体类型</th>
                <th width="50">状态</th>
			</tr>
		</thead>
		<tbody>
            @foreach(var m in this.Model){
                <tr>
				    <td style=" text-align:center"><input name="ids" value="@m.Id" type="checkbox"></td>
                    <td>@m.Name</td>
                    <td>@m.Type.GetDescription()</td>
                    <td>
                        @if (m.IsClose)
                              {
                                  <text><span style='color:red'>已下线</span></text>
                              }
                              else
                              {
                                  <text>上线</text>
                              }
                    </td>
			    </tr>	
            }					
		</tbody>
	</table>
</div>
</div>
